]> dgit.raspbian.org Git - gnome-shell.git/commit
magnifier: Scale the sprite to match the current monitor scaling
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 27 Mar 2019 15:14:39 +0000 (16:14 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sun, 27 Jul 2025 14:12:22 +0000 (14:12 +0000)
commit484928e80acb4b6d161dcdd50d48e7731b4f9bee
treefb46e2dbcdffa5bd0db869b147958a27e7bbf442
parent4e1dfa600f37aff8bc32f901d4c723aa3b76b9f1
magnifier: Scale the sprite to match the current monitor scaling

Compute the sprite texture scale (unfortunately using a workaround, based on
mutter cursor size preferences, tying to figure out the closest texture integer
scaling), and use this value to compute the scaling that should be applied to
the sprite in order to match the current monitor scaling.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/475>
js/ui/layout.js
js/ui/magnifier.js